package com.czxy.demo22;

public class Test01 {
    public static void main(String[] args) {
        Sport sport = Create.getSport();

        FootBallSpor fb = (FootBallSpor) sport;

        fb.buyFootBall();


        PlayGam playGame = Create.getPlayGame();

        BasketBallSport bb =  (BasketBallSport) playGame;
        bb.game();

    }
}
